<p>The LEAN Random Data Generator is located in the LEAN ToolBox and can be accessed by executing the <code>QuantConnect.ToolBox.exe</code> CLI program.</p>
<p>We recommend <a href="https://www.github.com/QuantConnect/Lean">cloning LEAN</a> and building from the source code directly from Github. However, if this is not possible for you we have made a snapshot of the build available for your convenience here: <br> <a target="_BLANK" href="https://cdn.quantconnect.com/tutorials/2019-01-19-QuantConnect.ToolBox.Binaries.zip"><i class="fa fa-cloud-download"></i> 2019-01-19-QuantConnect.ToolBox.Binaries.zip</a>
</p>

<p>To run the ToolBox open a command window and execute it from the command line. To execute it you will need C# or Mono installed:</p>

<p>Windows:</p>
<pre class="prettyprint"> .\QuantConnect.ToolBox.exe --app=randomdatagenerator</pre>

<p>Linux and Mac:</p>
<pre class="prettyprint">mono QuantConnect.ToolBox.exe --app=randomdatagenerator</pre>

<p>Complete Example:</p>
<pre class="prettyprint">
QuantConnect.ToolBox.exe 
    --app=randomdatagenerator 
    --resolution=Minute 
    --from-date=2018-01-01 
    --to-date=2019-01-01 
    --market=usa 
    --data-density=Dense 
    --include-coarse=true 
    --symbol-count=100 
</pre>

<p>
The Random Data Generator has many parameters you can configure to generate the various datasets LEAN supports. Please see the next section for documentation on these parameters.
</p>